<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>公告</title>
<link type="text/css" rel="stylesheet" href="static/css/style.css" />
<script type="text/javascript" src="static/js/jquery.js"></script>
</head>

<body>
<div class="notice_edit">
<dl>
	<dt>公告标题 <span class="f_12">(<span id="other_tip2">0/50</span>个字内)</span>
		</dd>
	</dt>
	<dd>
		<input type="text"  maxlength="50" onkeyup="txt_num2(this,this.value)">
	</dd>
</dl>
<dl>
	<dt>公告内容 <span class="f_12">(字数不超过<span id="other_tip" class="f_12">0/100</span>个)</span></dt>
	<dd>
		<textarea onkeyup="txt_num(this,this.value)" rows="5" cols="45" ></textarea>
	</dd>
</dl>
<script type="text/javascript">
function txt_num(obj,val){
	var len = val.length;
	$("#other_tip").html(len+"/100"); 
	obj.value = obj.value.slice(0, 100);
	}
function txt_num2(obj,val){
	var len = val.length;
	$("#other_tip2").html(len+"/50"); 
	obj.value = obj.value.slice(0, 50);
	}
</script>
</body>
</html>
